package com.zscat.mallplus.center.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zscat.mallplus.center.entity.CenterItem;
import com.zscat.mallplus.center.mapper.CenterItemMapper;
import com.zscat.mallplus.center.service.ICenterItemService;

/**
 * 金币余额明细Service业务层处理
 * 
 * @author Wsen
 * @date 2020-09-20
 */
@Service
public class CenterItemServiceImpl extends ServiceImpl<CenterItemMapper, CenterItem> implements ICenterItemService 
{
	@Resource
    private CenterItemMapper centerItemMapper;

    /**
     * 查询金币余额明细
     * 
     * @param id 金币余额明细ID
     * @return 金币余额明细
     */
    @Override
    public CenterItem selectCenterItemById(Long id)
    {
        return centerItemMapper.selectCenterItemById(id);
    }

    /**
     * 查询金币余额明细列表
     * 
     * @param centerItem 金币余额明细
     * @return 金币余额明细
     */
    @Override
    public List<CenterItem> selectCenterItemList(CenterItem centerItem)
    {
        return centerItemMapper.selectCenterItemList(centerItem);
    }

    /**
     * 新增金币余额明细
     * 
     * @param centerItem 金币余额明细
     * @return 结果
     */
    @Override
    public int insertCenterItem(CenterItem centerItem)
    {
        return centerItemMapper.insertCenterItem(centerItem);
    }

    /**
     * 修改金币余额明细
     * 
     * @param centerItem 金币余额明细
     * @return 结果
     */
    @Override
    public int updateCenterItem(CenterItem centerItem)
    {
        return centerItemMapper.updateCenterItem(centerItem);
    }

    /**
     * 批量删除金币余额明细
     * 
     * @param ids 需要删除的金币余额明细ID
     * @return 结果
     */
    @Override
    public int deleteCenterItemByIds(Long[] ids)
    {
        return centerItemMapper.deleteCenterItemByIds(ids);
    }

    /**
     * 删除金币余额明细信息
     * 
     * @param id 金币余额明细ID
     * @return 结果
     */
    @Override
    public int deleteCenterItemById(Long id)
    {
        return centerItemMapper.deleteCenterItemById(id);
    }
}
